package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 短信验证码表 sms_validate_code
 * 
 * @author njbjs
 * @date 2018-11-20
 */
public class SmsValidateCode extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	/** 主键ID */
	private Long id;
	/** 手机号码 */
	private String mobile;
	/** 验证码 */
	private String vCode;
	/** 类型：login、resetpwd */
	private String type;
	/** 创建时间 */
	private Date createTime;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getMobile() {
		return mobile;
	}
	public void setVCode(String vCode) {
		this.vCode = vCode;
	}

	public String getVCode() {
		return vCode;
	}
	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mobile", getMobile())
            .append("vCode", getVCode())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
